import {
	request
} from "./request"
export function Mymusic(id) {
	return request({
		url: `/song/url?id=${id}`,
		method: 'get'
	})
}

//搜索歌单
export function getCloudsearch(id) {
	return request({
		url: `/cloudsearch?keywords=${id}&type=1000`,
		method: 'get'
	})
}

// 获取视频
export function getMv(id) {
	return request({
		url: `/cloudsearch?keywords=${id}&type=1014`,
		method: 'get'
	})
}

// 获取艺人
export function getArtist(id) {
	return request({
		url: `/cloudsearch?keywords=${id}&type=100`,
		method: 'get'
	})
}

// 获取专辑
export function getAlbums(id){
	return request({
		url:`/cloudsearch?keywords=${id}&type=10`,
		method:'get'
	})
}

// 获取播单数据
export function getPodcast(id){
	return request({
		url:`/cloudsearch?keywords=${id}&type=1009`,
		method:'get'
	})
}

// 获取用户
export function getUsers(id){
	return request({
		url:`/cloudsearch?keywords=${id}&type=1002`,
		method:'get'
	})
}

// 获取歌曲的mv

export function getMvVideo(id){
	return request({
		url:`/mv/url?id=${id}`,
		method:'get'
	})
}


// 获取相关的视频

export function getRelevant(id){
	return request({
		url:`/simi/mv?mvid=${id}`,
		method:'get'
	})
}
